.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 20px;
}

/* 用户信息栏 */
.userInfo {
  background: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  min-height: 60px;
}

.userDetails {
  display: flex;
  align-items: center;
  gap: 8px;
}

.userName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.userId {
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.switchButton {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.switchButton:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

.switchIcon {
  font-size: 18px;
  color: #6c757d;
}

.switchText {
  font-size: 14px;
  color: #495057;
  font-weight: 500;
}

/* 预约信息卡片 */
.appointmentCard {
  background: white;
  margin: 20px;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 医生信息 */
.doctorInfo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.doctorAvatar {
  flex-shrink: 0;
}

.avatarIcon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid #d6e4ff;
}

.doctorDetails {
  flex: 1;
}

.doctorNameRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.doctorName {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.doctorTitle {
  font-size: 12px;
  color: #666;
}

.department {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.hospital {
  font-size: 12px;
  color: #666;
}

/* 预约详情 */
.appointmentDetails {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.detailRow {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.label {
  font-size: 13px;
  color: #666;
  margin-right: 8px;
}

.value {
  font-size: 13px;
  color: #333;
  flex: 1;
}

/* 操作区域 */
.actionArea {
  text-align: right;
  margin-top: 0;
}

.detailsButton {
  background: none;
  border: none;
  color: #1890ff;
  font-size: 13px;
  padding: 0;
  text-align: center;
}

.detailsButton:hover {
  color: #40a9ff;
}

/* 弹框样式 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modalContent {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 12px 12px 0 0;
  max-height: 60vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modalHeader h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.closeButton {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closeButton:hover {
  color: #666;
}

.userList {
  max-height: 300px;
  overflow-y: auto;
}

.userItem {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.userItem:hover {
  background-color: #f8f9fa;
}

.userItem:last-child {
  border-bottom: none;
}

.selectedUser {
  background-color: #e6f7ff;
}

.selectedUser:hover {
  background-color: #e6f7ff;
}

.userAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.userInfo {
  flex: 1;
  display: flex;
  gap: 4px;
}

.userInfo .userName {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.userInfo .userId {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.checkIcon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  background: transparent;
  font-weight: bold;
  transition: all 0.3s ease;
}

.checkIcon.checked {
  background: #1890ff;
  color: white;
  border-color: #1890ff;
  transform: scale(1.1);
  animation: checkBounce 0.4s ease;
}

@keyframes checkBounce {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.1);
  }
}

.modalFooter {
  padding: 16px 20px 20px 20px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.addUserButton {
  background: #1890ff;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.addUserButton:hover {
  background: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .appointmentCard {
    margin: 15px;
    padding: 15px;
  }
  
  .doctorInfo {
    gap: 12px;
  }
  
  .avatarIcon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .doctorName {
    font-size: 16px;
  }
  
  .detailRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .label {
    min-width: auto;
    margin-right: 0;
  }
  
  .modalContent {
    border-radius: 12px 12px 0 0;
  }
  
  .modalHeader {
    padding: 15px 15px 10px 15px;
  }
  
  .userItem {
    padding: 12px 15px;
  }
  
  .modalFooter {
    padding: 15px;
  }
}